.class public Lcom/waiqin365/lightapp/dailyreport/view/ab;
.super Landroid/widget/BaseAdapter;


# instance fields
.field public a:Ljava/util/ArrayList;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field private e:Landroid/content/Context;

.field private f:Lcom/waiqin365/lightapp/dailyreport/c/g;

.field private g:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/waiqin365/lightapp/dailyreport/c/g;)V
    .locals 7

    const/4 v2, 0x0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->e:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v0, p2, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v3}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    move v1, v2

    :goto_0
    if-ge v1, v3, :cond_1

    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v0, "image_id"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v0, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p2, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v5, Ljava/io/File;

    iget-object v0, p2, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->e:Ljava/lang/String;

    invoke-direct {v5, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v5, "path"

    iget-object v0, p2, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->e:Ljava/lang/String;

    invoke-virtual {v4, v5, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    const-string/jumbo v5, "path"

    iget-object v0, p2, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    invoke-virtual {v4, v5, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    :cond_1
    const-string/jumbo v0, "100"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "4"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "101"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x3

    if-lt v0, v1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_2
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->e:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    if-nez p2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->e:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0300f9

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/dailyreport/view/ad;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/ab;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c05d5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c05d6

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->b:Landroid/widget/TextView;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->e:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/k;->a:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_2

    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->e:Landroid/content/Context;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/f;->a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/fiberhome/gaea/client/d/f;->b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;)V

    :goto_1
    const/4 v0, 0x2

    if-ne p1, v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v2, 0x3

    if-le v0, v2, :cond_4

    const-string/jumbo v0, "100"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "101"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "4"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->f:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_0
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->b:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "+"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->g:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->b:Landroid/widget/TextView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/view/ac;

    invoke-direct {v1, p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ac;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/ab;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ad;

    move-object v1, v0

    goto/16 :goto_0

    :cond_2
    const-string/jumbo v3, ""

    invoke-virtual {v3, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_3

    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->e:Landroid/content/Context;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/f;->a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/fiberhome/gaea/client/d/f;->b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;)V

    goto/16 :goto_1

    :cond_3
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->a:Landroid/widget/ImageView;

    const v2, 0x7f02016d

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_1

    :cond_4
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/ad;->b:Landroid/widget/TextView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2
.end method
